#ifndef ADDREMOVE_H
#define ADDREMOVE_H

#include "nPatriciaTrie.h"
#define FLATPREFIX "testscript"
#define HIERPREFIX "/testscript"
extern char WORDGOT[];
extern char alphabets[];
extern nPatriciaTrie<char> *engwords;
extern nPatriciaTrie<char> *tstfiles;
extern linkedlist *hierlist;
extern long avg1,avg2;
extern long first1,first2;
extern long count1,count2;
extern long countoperations;
void randomize();
void genword(int maxlen);
void englishword();
linkedlist *getsometestfiles();
void maketestfilestrie();
void initializetest();
void loadenglishlist();
void freeup();
void  addrandomflattags(char *filename);
void  recursehier(int level,char prefix[300]);
void  addrandomhiertags();
void  addrandomtags();
void  removerandomflattags(char *filename);
void  removerandomtags();
void  addtestfiles(long N);
linkedlist* timedclientsearch(char *which,linkedlist* tags);
linkedlist* timedclientgetsuggestions();
linkedlist* clientlistNfiles(linkedlist *tag);

#endif /*ADDREMOVE_H*/
